<div id="chooseInspectionRoutePointModel" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="chooseInspectionRoutePointModelLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="chooseInspectionRoutePointModelLabel"><span><vc:i18n name="选择巡检点" namespace="chooseInspectionRoutePoint"></vc:i18n></span></h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <div class="row">
                                <div class="col-sm-7 m-b-xs">
                                </div>
                                <div class="col-sm-5">
                                    <div class="input-group">
                                        <input :placeholder="vc.i18n('输入巡检点名称','chooseInspectionRoutePoint')" type="text"
                                               v-model="chooseInspectionRoutePointInfo.inspectionName"
                                               class="form-control form-control-sm">
                                        <span class="input-group-append">
                                            <button type="button" class="btn btn-sm btn-primary"
                                                    v-on:click="queryPoints()">
                                                    <i class="fa fa-search"></i><span><vc:i18n name="查询" namespace="chooseInspectionRoutePoint"></vc:i18n></span>
                                            </button>
                                            <button type="button" class="btn btn-sm btn-primary"
                                                    style="margin-left: 1px" v-on:click="resetPoints()">
                                                    <i class="fa fa-times"></i><span><vc:i18n name="重置" namespace="chooseInspectionRoutePoint"></vc:i18n></span>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <div class="table-responsive" style="margin-top:15px">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <input type="checkbox" class="i-checks " @click="checkAll($event)"
                                                   id="quan">
                                        </th>
                                        <th class="text-center"><span><vc:i18n name="巡检点" namespace="chooseInspectionRoutePoint"></vc:i18n></span>ID</th>
                                        <th class="text-center"><span><vc:i18n name="巡检点名称" namespace="chooseInspectionRoutePoint"></vc:i18n></span></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="inspectionPoint in chooseInspectionRoutePointInfo.points">
                                        <td class="text-center">
                                            <input type="checkbox" class="i-checks checkItem"
                                                   v-bind:value="inspectionPoint.inspectionId"
                                                   v-model="chooseInspectionRoutePointInfo.selectPoints">
                                        </td>
                                        <td class="text-center">{{inspectionPoint.inspectionId}}</td>
                                        <td class="text-center">{{inspectionPoint.inspectionName}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <!-- 分页 -->
                                <vc:create namespace="chooseInspectionRoutePoint"
                                           path="frame/paginationPlus"></vc:create>
                                <div class="ibox-content" v-if="chooseInspectionRoutePointInfo.points.length > 0">
                                    <button class="btn btn-primary float-right" type="button"
                                            v-on:click="_chooseInspectionRoutePoint()">
                                        <i class="fa fa-check"></i>&nbsp;提交
                                    </button>
                                    <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                            data-dismiss="modal">
                                        <i class="fa fa-times"></i>&nbsp;取消
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
